package com.heima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.SensitiveDto;
import com.heima.model.wemedia.pojos.WmChannel;
import com.heima.model.wemedia.pojos.WmSensitive;

/**
 * @author chenshan
 */
public interface SensitiveService extends IService<WmSensitive> {

    /**
     * 分页条件查询敏感词
     * @param sensitiveDto 分页查询参数
     * @return ResponseResult
     */
    ResponseResult pageFindSensitives(SensitiveDto sensitiveDto);

    /**
     * 添加敏感词
     * @param sensitive 敏感词信息
     * @return ResponseResult
     */
    ResponseResult saveSensitives(WmSensitive sensitive);

    /**
     * 修改敏感词
     * @param sensitive 敏感词信息
     * @return ResponseResult
     */
    ResponseResult updateSensitives(WmSensitive sensitive);

    /**
     * 删除敏感词
     * @param id 敏感词id
     * @return ResponseResult
     */
    ResponseResult delSensitivesById(String id);
}
